<%@ page import="com.dingpeikeji.quickdeer.modules.rentproduct.entity.TDemands" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<c:set var="REACTSTATUS_WAIT" value="<%=TDemands.REACTSTATUS_WAIT %>" />
<c:set var="REACTSTATUS_DONE" value="<%=TDemands.REACTSTATUS_DONE %>" />
<c:set var="REACTSTATUS_SURE" value="<%=TDemands.REACTSTATUS_SURE %>" />
<html>
<head>
	<title>需求报价管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
	<shiro:hasPermission name="rentproduct:demandsPrice:allview">	
		<li class="active"><a href="${ctx}/rentproduct/demandsPrice">需求查询列表</a></li>	
		</shiro:hasPermission>
	</ul>
	
	<form:form id="searchForm" modelAttribute="tDemands" action="${ctx}/rentproduct/tDemands/alllist" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>用车时间</th>
				<th>车型</th>
				<th>包车数量</th>
				<th>包车天数</th>
				<th>出发地</th>
				<th>目的地</th>
				<th>响应状态</th>
				<shiro:hasPermission name="rentproduct:demandsPrice:allview"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="tDemands">
			<tr>
				<td>
					<fmt:formatDate value="${tDemands.fromdate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					${tDemands.cartype.typename}
				</td>
				<td>
					${tDemands.vehiclenum}
				</td>
				<td>
					${tDemands.rentdays}
				</td>
				<td>
					${tDemands.departcity.sitename}
				</td>
				<td>
					${tDemands.destcity.sitename}
				</td>
				<td>
				${fns:getDictLabel(tDemands.reactstatus, 'reactstatus', '无')}
				</td>
				<shiro:hasPermission name="rentproduct:demandsPrice:allview">
					<td>
						<a href="${ctx}/rentproduct/demandsPrice/allform?demandid=${tDemands.demandid}">查看</a>
					</td>
				</shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>